﻿using System;

namespace CRM.Authorization.Permissions
{
    //const FLAG_BASE = 4611686018427387904;                  //63=0100000000000000000000000000000000000000000000000000000000000000
    //const FLAG_FULL = 9223372036854775807;                  //63=0111111111111111111111111111111111111111111111111111111111111111

    //const FLAG_HALF= 9223372032559808512;
    ////0111111111111111111111111111111100000000000000000000000000000000
    public enum Flag : long
    {
        BASE = 4611686018427387904,
        MIN = BASE,

        [Obsolete("原ERP3区分Rule与Config")]
        HALF = 9223372032559808512,

        FULL = 9223372036854775807,
        MAX = FULL,
        FlAG_BIT_01 = 1,
        FlAG_BIT_02 = 2,
        FlAG_BIT_03 = 4,
        FlAG_BIT_04 = 8,
        FlAG_BIT_05 = 16,
        FlAG_BIT_06 = 32,
        FlAG_BIT_07 = 64,
        FlAG_BIT_08 = 128,
        FlAG_BIT_09 = 256,
        FlAG_BIT_10 = 512,
        FlAG_BIT_11 = 1024,
        FlAG_BIT_12 = 2048,
        FlAG_BIT_13 = 4096,
        FlAG_BIT_14 = 8192,
        FlAG_BIT_15 = 16384,
        FlAG_BIT_16 = 32768,
        FlAG_BIT_17 = 65536,
        FlAG_BIT_18 = 131072,
        FlAG_BIT_19 = 262144,
        FlAG_BIT_20 = 524288,
        FlAG_BIT_21 = 1048576,
        FlAG_BIT_22 = 2097152,
        FlAG_BIT_23 = 4194304,
        FlAG_BIT_24 = 8388608,
        FlAG_BIT_25 = 16777216,
        FlAG_BIT_26 = 33554432,
        FlAG_BIT_27 = 67108864,
        FlAG_BIT_28 = 134217728,
        FlAG_BIT_29 = 268435456,
        FlAG_BIT_30 = 536870912,
        FlAG_BIT_31 = 1073741824,
        FlAG_BIT_32 = 2147483648,
        FlAG_BIT_33 = 4294967296,
        FlAG_BIT_34 = 8589934592,
        FlAG_BIT_35 = 17179869184,
        FlAG_BIT_36 = 34359738368,
        FlAG_BIT_37 = 68719476736,
        FlAG_BIT_38 = 137438953472,
        FlAG_BIT_39 = 274877906944,
        FlAG_BIT_40 = 549755813888,
        FlAG_BIT_41 = 1099511627776,
        FlAG_BIT_42 = 2199023255552,
        FlAG_BIT_43 = 4398046511104,
        FlAG_BIT_44 = 8796093022208,
        FlAG_BIT_45 = 17592186044416,
        FlAG_BIT_46 = 35184372088832,
        FlAG_BIT_47 = 70368744177664,
        FlAG_BIT_48 = 140737488355328,
        FlAG_BIT_49 = 281474976710656,
        FlAG_BIT_50 = 562949953421312,
        FlAG_BIT_51 = 1125899906842624,
        FlAG_BIT_52 = 2251799813685248,
        FlAG_BIT_53 = 4503599627370496,
        FlAG_BIT_54 = 9007199254740992,
        FlAG_BIT_55 = 18014398509481984,
        FlAG_BIT_56 = 36028797018963968,
        FlAG_BIT_57 = 72057594037927936,
        FlAG_BIT_58 = 144115188075855872,
        FlAG_BIT_59 = 288230376151711744,
        FlAG_BIT_60 = 576460752303423488,
        FlAG_BIT_61 = 1152921504606846976,
        FlAG_BIT_62 = 2305843009213693952,
    }
}
